<!DOCTYPE html>
<html class="writer-html5" lang="en">
<head>
  <meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>webdriver.Chrome &mdash; Selenium-Driverless 1.9.4 documentation</title>
      <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
      <link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />

  
  <!--[if lt IE 9]>
    <script src="../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
        <script src="../_static/jquery.js?v=5d32c60e"></script>
        <script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
        <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=1ac0efc4"></script>
        <script src="../_static/doctools.js?v=888ff710"></script>
        <script src="../_static/sphinx_highlight.js?v=4825356b"></script>
    <script src="../_static/js/theme.js"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="ChromeOptions" href="ChromeOptions.html" />
    <link rel="prev" title="By Element Locator" href="By.html" /> 
</head>

<body class="wy-body-for-nav"> 
  <div class="wy-grid-for-nav">
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >

          
          
          <a href="../index.html" class="icon icon-home">
            Selenium-Driverless
          </a>
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>
        </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="By.html">By Element Locator</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">webdriver.Chrome</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome"><code class="docutils literal notranslate"><span class="pre">Chrome</span></code></a><ul>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.frame_tree"><code class="docutils literal notranslate"><span class="pre">Chrome.frame_tree</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.targets"><code class="docutils literal notranslate"><span class="pre">Chrome.targets</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.contexts"><code class="docutils literal notranslate"><span class="pre">Chrome.contexts</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.new_context"><code class="docutils literal notranslate"><span class="pre">Chrome.new_context()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_targets"><code class="docutils literal notranslate"><span class="pre">Chrome.get_targets()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.current_target"><code class="docutils literal notranslate"><span class="pre">Chrome.current_target</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.base_target"><code class="docutils literal notranslate"><span class="pre">Chrome.base_target</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.mv3_extension"><code class="docutils literal notranslate"><span class="pre">Chrome.mv3_extension</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.ensure_extensions_incognito_allowed"><code class="docutils literal notranslate"><span class="pre">Chrome.ensure_extensions_incognito_allowed()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.base_context"><code class="docutils literal notranslate"><span class="pre">Chrome.base_context</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.downloads_dir"><code class="docutils literal notranslate"><span class="pre">Chrome.downloads_dir</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_download_behaviour"><code class="docutils literal notranslate"><span class="pre">Chrome.set_download_behaviour()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.current_context"><code class="docutils literal notranslate"><span class="pre">Chrome.current_context</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_target"><code class="docutils literal notranslate"><span class="pre">Chrome.get_target()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_target_for_iframe"><code class="docutils literal notranslate"><span class="pre">Chrome.get_target_for_iframe()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_targets_for_iframes"><code class="docutils literal notranslate"><span class="pre">Chrome.get_targets_for_iframes()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.wait_download"><code class="docutils literal notranslate"><span class="pre">Chrome.wait_download()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get"><code class="docutils literal notranslate"><span class="pre">Chrome.get()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.title"><code class="docutils literal notranslate"><span class="pre">Chrome.title</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.current_pointer"><code class="docutils literal notranslate"><span class="pre">Chrome.current_pointer</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.send_keys"><code class="docutils literal notranslate"><span class="pre">Chrome.send_keys()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.execute_raw_script"><code class="docutils literal notranslate"><span class="pre">Chrome.execute_raw_script()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.execute_script"><code class="docutils literal notranslate"><span class="pre">Chrome.execute_script()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.execute_async_script"><code class="docutils literal notranslate"><span class="pre">Chrome.execute_async_script()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.eval_async"><code class="docutils literal notranslate"><span class="pre">Chrome.eval_async()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.current_url"><code class="docutils literal notranslate"><span class="pre">Chrome.current_url</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.page_source"><code class="docutils literal notranslate"><span class="pre">Chrome.page_source</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.close"><code class="docutils literal notranslate"><span class="pre">Chrome.close()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.focus"><code class="docutils literal notranslate"><span class="pre">Chrome.focus()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.quit"><code class="docutils literal notranslate"><span class="pre">Chrome.quit()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.current_target_info"><code class="docutils literal notranslate"><span class="pre">Chrome.current_target_info</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.current_window_handle"><code class="docutils literal notranslate"><span class="pre">Chrome.current_window_handle</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.current_window_id"><code class="docutils literal notranslate"><span class="pre">Chrome.current_window_id</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.window_handles"><code class="docutils literal notranslate"><span class="pre">Chrome.window_handles</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.new_window"><code class="docutils literal notranslate"><span class="pre">Chrome.new_window()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_window_state"><code class="docutils literal notranslate"><span class="pre">Chrome.set_window_state()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.normalize_window"><code class="docutils literal notranslate"><span class="pre">Chrome.normalize_window()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.maximize_window"><code class="docutils literal notranslate"><span class="pre">Chrome.maximize_window()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.fullscreen_window"><code class="docutils literal notranslate"><span class="pre">Chrome.fullscreen_window()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.minimize_window"><code class="docutils literal notranslate"><span class="pre">Chrome.minimize_window()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.print_page"><code class="docutils literal notranslate"><span class="pre">Chrome.print_page()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.switch_to"><code class="docutils literal notranslate"><span class="pre">Chrome.switch_to</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.back"><code class="docutils literal notranslate"><span class="pre">Chrome.back()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.forward"><code class="docutils literal notranslate"><span class="pre">Chrome.forward()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.refresh"><code class="docutils literal notranslate"><span class="pre">Chrome.refresh()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_cookies"><code class="docutils literal notranslate"><span class="pre">Chrome.get_cookies()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_cookie"><code class="docutils literal notranslate"><span class="pre">Chrome.get_cookie()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.delete_cookie"><code class="docutils literal notranslate"><span class="pre">Chrome.delete_cookie()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.delete_all_cookies"><code class="docutils literal notranslate"><span class="pre">Chrome.delete_all_cookies()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.add_cookie"><code class="docutils literal notranslate"><span class="pre">Chrome.add_cookie()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.sleep"><code class="docutils literal notranslate"><span class="pre">Chrome.sleep()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.find_element"><code class="docutils literal notranslate"><span class="pre">Chrome.find_element()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.find_elements"><code class="docutils literal notranslate"><span class="pre">Chrome.find_elements()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.search_elements"><code class="docutils literal notranslate"><span class="pre">Chrome.search_elements()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_screenshot_as_file"><code class="docutils literal notranslate"><span class="pre">Chrome.get_screenshot_as_file()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.save_screenshot"><code class="docutils literal notranslate"><span class="pre">Chrome.save_screenshot()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_screenshot_as_png"><code class="docutils literal notranslate"><span class="pre">Chrome.get_screenshot_as_png()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.snapshot"><code class="docutils literal notranslate"><span class="pre">Chrome.snapshot()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.save_snapshot"><code class="docutils literal notranslate"><span class="pre">Chrome.save_snapshot()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_window_size"><code class="docutils literal notranslate"><span class="pre">Chrome.set_window_size()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_window_size"><code class="docutils literal notranslate"><span class="pre">Chrome.get_window_size()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_window_position"><code class="docutils literal notranslate"><span class="pre">Chrome.set_window_position()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_window_position"><code class="docutils literal notranslate"><span class="pre">Chrome.get_window_position()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_window_rect"><code class="docutils literal notranslate"><span class="pre">Chrome.get_window_rect()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_window_rect"><code class="docutils literal notranslate"><span class="pre">Chrome.set_window_rect()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_network_conditions"><code class="docutils literal notranslate"><span class="pre">Chrome.get_network_conditions()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_network_conditions"><code class="docutils literal notranslate"><span class="pre">Chrome.set_network_conditions()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.delete_network_conditions"><code class="docutils literal notranslate"><span class="pre">Chrome.delete_network_conditions()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_permissions"><code class="docutils literal notranslate"><span class="pre">Chrome.set_permissions()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_proxy"><code class="docutils literal notranslate"><span class="pre">Chrome.set_proxy()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_single_proxy"><code class="docutils literal notranslate"><span class="pre">Chrome.set_single_proxy()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.clear_proxy"><code class="docutils literal notranslate"><span class="pre">Chrome.clear_proxy()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_auth"><code class="docutils literal notranslate"><span class="pre">Chrome.set_auth()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.wait_for_cdp"><code class="docutils literal notranslate"><span class="pre">Chrome.wait_for_cdp()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.add_cdp_listener"><code class="docutils literal notranslate"><span class="pre">Chrome.add_cdp_listener()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.remove_cdp_listener"><code class="docutils literal notranslate"><span class="pre">Chrome.remove_cdp_listener()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_cdp_event_iter"><code class="docutils literal notranslate"><span class="pre">Chrome.get_cdp_event_iter()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.execute_cdp_cmd"><code class="docutils literal notranslate"><span class="pre">Chrome.execute_cdp_cmd()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.fetch"><code class="docutils literal notranslate"><span class="pre">Chrome.fetch()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.xhr"><code class="docutils literal notranslate"><span class="pre">Chrome.xhr()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_sinks"><code class="docutils literal notranslate"><span class="pre">Chrome.get_sinks()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.get_issue_message"><code class="docutils literal notranslate"><span class="pre">Chrome.get_issue_message()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_sink_to_use"><code class="docutils literal notranslate"><span class="pre">Chrome.set_sink_to_use()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.start_desktop_mirroring"><code class="docutils literal notranslate"><span class="pre">Chrome.start_desktop_mirroring()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.start_tab_mirroring"><code class="docutils literal notranslate"><span class="pre">Chrome.start_tab_mirroring()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.webdriver.Chrome.stop_casting"><code class="docutils literal notranslate"><span class="pre">Chrome.stop_casting()</span></code></a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#selenium_driverless.scripts.switch_to.SwitchTo"><code class="docutils literal notranslate"><span class="pre">SwitchTo</span></code></a><ul>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.switch_to.SwitchTo.alert"><code class="docutils literal notranslate"><span class="pre">SwitchTo.alert</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.switch_to.SwitchTo.get_alert"><code class="docutils literal notranslate"><span class="pre">SwitchTo.get_alert()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.switch_to.SwitchTo.default_content"><code class="docutils literal notranslate"><span class="pre">SwitchTo.default_content()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.switch_to.SwitchTo.frame"><code class="docutils literal notranslate"><span class="pre">SwitchTo.frame()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.switch_to.SwitchTo.target"><code class="docutils literal notranslate"><span class="pre">SwitchTo.target()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.switch_to.SwitchTo.window"><code class="docutils literal notranslate"><span class="pre">SwitchTo.window()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.scripts.switch_to.SwitchTo.new_window"><code class="docutils literal notranslate"><span class="pre">SwitchTo.new_window()</span></code></a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="ChromeOptions.html">ChromeOptions</a></li>
<li class="toctree-l1"><a class="reference internal" href="Context.html">Context</a></li>
<li class="toctree-l1"><a class="reference internal" href="Input.html">Input</a></li>
<li class="toctree-l1"><a class="reference internal" href="RequestInterception.html">Request-Interception</a></li>
<li class="toctree-l1"><a class="reference internal" href="Target.html">Target</a></li>
<li class="toctree-l1"><a class="reference internal" href="WebELement.html">WebElement</a></li>
</ul>

        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../index.html">Selenium-Driverless</a>
      </nav>

      <div class="wy-nav-content">
        <div class="rst-content">
          <div role="navigation" aria-label="Page navigation">
  <ul class="wy-breadcrumbs">
      <li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
      <li class="breadcrumb-item active">webdriver.Chrome</li>
      <li class="wy-breadcrumbs-aside">
            <a href="../_sources/api/Chrome.rst.txt" rel="nofollow"> View page source</a>
      </li>
  </ul>
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
             
  <section id="webdriver-chrome">
<h1>webdriver.Chrome<a class="headerlink" href="#webdriver-chrome" title="Permalink to this heading"></a></h1>
<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.webdriver.</span></span><span class="sig-name descname"><span class="pre">Chrome</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">options</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">30</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">debug</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_ws_size</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">134217728</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome" title="Permalink to this definition"></a></dt>
<dd><p>Control the chromium based browsers without any driver.</p>
<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.frame_tree">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">frame_tree</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">dict</span></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.frame_tree" title="Permalink to this definition"></a></dt>
<dd><p><strong>async</strong>
all nested frames within the current target</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.targets">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">targets</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><a class="reference internal" href="Target.html#selenium_driverless.types.target.TargetInfo" title="selenium_driverless.types.target.TargetInfo"><span class="pre">TargetInfo</span></a><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.targets" title="Permalink to this definition"></a></dt>
<dd><p><strong>async</strong>
all targets within the current context</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.contexts">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">contexts</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><a class="reference internal" href="Context.html#selenium_driverless.types.context.Context" title="selenium_driverless.types.context.Context"><span class="pre">Context</span></a><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.contexts" title="Permalink to this definition"></a></dt>
<dd><p><strong>async</strong>
all (incognito) contexts on Chrome.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.new_context">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">new_context</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">proxy_bypass_list</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">proxy_server</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">universal_access_origins</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">url</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'about:blank'</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.new_context"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.new_context" title="Permalink to this definition"></a></dt>
<dd><p>creates a new (incognito) context</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>url</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – the url the first tab will start at. “<a class="reference external" href="about:blank">about:blank</a>” by default</p></li>
<li><p><strong>universal_access_origins</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]]</span>) – An optional list of origins to grant unlimited cross-origin access to. Parts of the URL other than those constituting origin are ignored</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><a class="reference internal" href="Context.html#selenium_driverless.types.context.Context" title="selenium_driverless.types.context.Context"><code class="xref py py-class docutils literal notranslate"><span class="pre">Context</span></code></a></span></p>
</dd>
</dl>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>The proxy parameter doesn’t work on Windows due to <a class="reference external" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1310057">crbug#1310057</a>.</p>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>proxy_server</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – a proxy-server to use for the context</p></li>
<li><p><strong>proxy_bypass_list</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]]</span>) – a list of proxies to ignore</p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_targets">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_targets</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">_type</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">context_id</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'self'</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_targets"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_targets" title="Permalink to this definition"></a></dt>
<dd><p>get all targets within the current context
:type _type: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-data docutils literal notranslate"><span class="pre">Literal</span></code>[<code class="docutils literal notranslate"><span class="pre">'page'</span></code>, <code class="docutils literal notranslate"><span class="pre">'background_page'</span></code>, <code class="docutils literal notranslate"><span class="pre">'service_worker'</span></code>, <code class="docutils literal notranslate"><span class="pre">'browser'</span></code>, <code class="docutils literal notranslate"><span class="pre">'other'</span></code>]]</span>
:param _type: filter by target type
:type context_id: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>
:param context_id: if <code class="docutils literal notranslate"><span class="pre">None</span></code>, this function returns all targets for all contexts.</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">Dict</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>, <a class="reference internal" href="Target.html#selenium_driverless.types.target.TargetInfo" title="selenium_driverless.types.target.TargetInfo"><code class="xref py py-class docutils literal notranslate"><span class="pre">TargetInfo</span></code></a>]</span></p>
</dd>
</dl>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.current_target">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">current_target</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="Target.html#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><span class="pre">Target</span></a></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.current_target" title="Permalink to this definition"></a></dt>
<dd><p>the current Target</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.base_target">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">base_target</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="Target.html#selenium_driverless.types.base_target.BaseTarget" title="selenium_driverless.types.base_target.BaseTarget"><span class="pre">BaseTarget</span></a></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.base_target" title="Permalink to this definition"></a></dt>
<dd><p>The connection handle for the global connection to Chrome</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>only the bindings for using the CDP-protocol on BaseTarget supported</p>
</div>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.mv3_extension">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">mv3_extension</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="Target.html#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><span class="pre">Target</span></a></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.mv3_extension" title="Permalink to this definition"></a></dt>
<dd><p><strong>async</strong> the target for the background script of the by default loaded Chrome-extension (manifest-version==3)</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.ensure_extensions_incognito_allowed">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ensure_extensions_incognito_allowed</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.ensure_extensions_incognito_allowed"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.ensure_extensions_incognito_allowed" title="Permalink to this definition"></a></dt>
<dd><p>ensure that all installed Chrome-extensions are allowed in incognito context.</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>Generally, the extension decides whether to use the <code class="docutils literal notranslate"><span class="pre">split</span></code>, <code class="docutils literal notranslate"><span class="pre">spanning</span></code> or <code class="docutils literal notranslate"><span class="pre">not_allowed</span></code> configuration.
For changing this behaviour, you’ll have to modify the <code class="docutils literal notranslate"><span class="pre">manifest.json</span></code> file within the compressed extension or directory.
See <a class="reference external" href="https://developer.chrome.com/docs/extensions/reference/manifest/incognito?hl=en">developer.chrome.com/docs/extensions/reference/manifest/incognito</a>.</p>
</div>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.base_context">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">base_context</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="Context.html#selenium_driverless.types.context.Context" title="selenium_driverless.types.context.Context"><span class="pre">Context</span></a></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.base_context" title="Permalink to this definition"></a></dt>
<dd><p>the Context which isn’t incognito</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.downloads_dir">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">downloads_dir</span></span><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.downloads_dir" title="Permalink to this definition"></a></dt>
<dd><p>the current downloads directory for the current context</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.set_download_behaviour">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">set_download_behaviour</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">behaviour</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">path</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.set_download_behaviour"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.set_download_behaviour" title="Permalink to this definition"></a></dt>
<dd><p>set the download behaviour</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>behaviour</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Literal</span></code>[<code class="docutils literal notranslate"><span class="pre">'deny'</span></code>, <code class="docutils literal notranslate"><span class="pre">'allow'</span></code>, <code class="docutils literal notranslate"><span class="pre">'allowAndName'</span></code>, <code class="docutils literal notranslate"><span class="pre">'default'</span></code>]</span>) – the behaviour to set the downloading to</p></li>
<li><p><strong>path</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – the path to the default download directory</p></li>
</ul>
</dd>
</dl>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>setting <code class="docutils literal notranslate"><span class="pre">behaviour=allow</span></code> instead of <code class="docutils literal notranslate"><span class="pre">allowAndName</span></code> can cause some bugs</p>
</div>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.current_context">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">current_context</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="Context.html#selenium_driverless.types.context.Context" title="selenium_driverless.types.context.Context"><span class="pre">Context</span></a></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.current_context" title="Permalink to this definition"></a></dt>
<dd><p>the current context switched to</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_target">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_target</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">target_id</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_target"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_target" title="Permalink to this definition"></a></dt>
<dd><p>get a Target by TargetId for advanced usage of the CDP protocol
:type target_id: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>
:param target_id:
:type timeout: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code></span>
:param timeout: timeout in seconds for connecting to the target if it’s not tracked already</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><a class="reference internal" href="Target.html#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><code class="xref py py-class docutils literal notranslate"><span class="pre">Target</span></code></a></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_target_for_iframe">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_target_for_iframe</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">iframe</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_target_for_iframe"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_target_for_iframe" title="Permalink to this definition"></a></dt>
<dd><p>get the Target for a specific iframe</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>only cross-iframes have a Target due to <a class="reference external" href="https://www.chromium.org/developers/design-documents/oop-iframes/">OOPIF</a>. See <a class="reference external" href="https://www.chromium.org/Home/chromium-security/site-isolation/">site-isolation</a>
For a general solution, have a look at <code class="docutils literal notranslate"><span class="pre">WebElement.content_document</span></code> instead</p>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>iframe</strong> (<span class="sphinx_autodoc_typehints-type"><a class="reference internal" href="WebELement.html#selenium_driverless.types.webelement.WebElement" title="selenium_driverless.types.webelement.WebElement"><code class="xref py py-class docutils literal notranslate"><span class="pre">WebElement</span></code></a></span>) – the iframe to get the Target for</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><a class="reference internal" href="Target.html#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><code class="xref py py-class docutils literal notranslate"><span class="pre">Target</span></code></a></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_targets_for_iframes">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_targets_for_iframes</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">iframes</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_targets_for_iframes"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_targets_for_iframes" title="Permalink to this definition"></a></dt>
<dd><p>returns a list of targets for iframes
see <code class="docutils literal notranslate"><span class="pre">webdriver.Chrome.get_target_for_iframe</span></code> for more information</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>iframes</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<a class="reference internal" href="WebELement.html#selenium_driverless.types.webelement.WebElement" title="selenium_driverless.types.webelement.WebElement"><code class="xref py py-class docutils literal notranslate"><span class="pre">WebElement</span></code></a>]</span>) – the iframe to get the targets for</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<a class="reference internal" href="Target.html#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><code class="xref py py-class docutils literal notranslate"><span class="pre">Target</span></code></a>]</span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.wait_download">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">wait_download</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">30</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.wait_download"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.wait_download" title="Permalink to this definition"></a></dt>
<dd><p>wait for a download on the current tab</p>
<p>returns something like</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
    <span class="s2">&quot;frameId&quot;</span><span class="p">:</span> <span class="s2">&quot;2D543B5E8B14945B280C537A4882A695&quot;</span><span class="p">,</span>
    <span class="s2">&quot;guid&quot;</span><span class="p">:</span> <span class="s2">&quot;c91df4d5-9b45-4962-84df-3749bd3f926d&quot;</span><span class="p">,</span>
    <span class="s2">&quot;url&quot;</span><span class="p">:</span> <span class="s2">&quot;https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf&quot;</span><span class="p">,</span>
    <span class="s2">&quot;suggestedFilename&quot;</span><span class="p">:</span> <span class="s2">&quot;dummy.pdf&quot;</span><span class="p">,</span>

    <span class="c1"># only if options.downloads_dir specified</span>
    <span class="s2">&quot;guid_file&quot;</span><span class="p">:</span> <span class="s2">&quot;D:\System\AppData\PyCharm\scratches\downloads\c91df4d5-9b45-4962-84df-3749bd3f926d&quot;</span>
<span class="p">}</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>timeout</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code></span>) – time in seconds to wait for a download</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
</dd>
</dl>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>downloads from iframes not supported yet</p>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">url</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">referrer</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">wait_load</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">30</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get" title="Permalink to this definition"></a></dt>
<dd><p>Loads a web page in the current Target</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>url</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – the url to load.</p></li>
<li><p><strong>referrer</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – the referrer to load the page with</p></li>
<li><p><strong>wait_load</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to wait for the webpage to load</p></li>
<li><p><strong>timeout</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code></span>) – the maximum time in seconds for waiting on load</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code>]</span></p>
</dd>
</dl>
<p>returns the same as <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target.wait_download" title="selenium_driverless.types.target.Target.wait_download"><code class="xref py py-func docutils literal notranslate"><span class="pre">Target.wait_download</span></code></a> if the url initiates a download</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.title">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">title</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.title" title="Permalink to this definition"></a></dt>
<dd><p><strong>async</strong> the title of the current target</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.current_pointer">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">current_pointer</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="Input.html#selenium_driverless.input.pointer.Pointer" title="selenium_driverless.input.pointer.Pointer"><span class="pre">Pointer</span></a></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.current_pointer" title="Permalink to this definition"></a></dt>
<dd><p>the <a class="reference internal" href="Input.html#selenium_driverless.input.pointer.Pointer" title="selenium_driverless.input.pointer.Pointer"><code class="xref py py-class docutils literal notranslate"><span class="pre">Pointer</span></code></a> for this target</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.send_keys">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">send_keys</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">text</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.send_keys"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.send_keys" title="Permalink to this definition"></a></dt>
<dd><p>send text &amp; keys to the current target</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>text</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – the text to send</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.execute_raw_script">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">execute_raw_script</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">script</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">await_res</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">serialization</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'deep'</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_depth</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">execution_context_id</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">unique_context</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.execute_raw_script"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.execute_raw_script" title="Permalink to this definition"></a></dt>
<dd><p>executes a JavaScript on <code class="docutils literal notranslate"><span class="pre">GlobalThis</span></code> such as</p>
<div class="highlight-js notranslate"><div class="highlight"><pre><span></span><span class="kd">function</span><span class="p">(...</span><span class="nx">arguments</span><span class="p">){</span><span class="k">return</span><span class="w"> </span><span class="nb">document</span><span class="p">}</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>script</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – the script as a string</p></li>
<li><p><strong>args</strong> – the argument which are passed to the function. Those can be either json-serializable or a RemoteObject such as WebElement</p></li>
<li><p><strong>await_res</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to await the function or the return value of it</p></li>
<li><p><strong>serialization</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Literal</span></code>[<code class="docutils literal notranslate"><span class="pre">'deep'</span></code>, <code class="docutils literal notranslate"><span class="pre">'json'</span></code>, <code class="docutils literal notranslate"><span class="pre">'idOnly'</span></code>]</span>) – can be one of <code class="docutils literal notranslate"><span class="pre">deep</span></code>, <code class="docutils literal notranslate"><span class="pre">json</span></code>, <code class="docutils literal notranslate"><span class="pre">idOnly</span></code></p></li>
<li><p><strong>max_depth</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code>]</span>) – The maximum depth objects get serialized.</p></li>
<li><p><strong>timeout</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code></span>) – the maximum time to wait for the execution to complete</p></li>
<li><p><strong>execution_context_id</strong> – the execution context id to run the JavaScript in. Exclusive with unique_context</p></li>
<li><p><strong>unique_context</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to use an isolated context to run the Script in.</p></li>
</ul>
</dd>
</dl>
<p>see <a class="reference external" href="https://chromedevtools.github.io/devtools-protocol/tot/Runtime/#method-callFunctionOn">Runtime.callFunctionOn</a></p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.execute_script">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">execute_script</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">script</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_depth</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">serialization</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">execution_context_id</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">unique_context</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.execute_script"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.execute_script" title="Permalink to this definition"></a></dt>
<dd><p>executes JavaScript synchronously on <code class="docutils literal notranslate"><span class="pre">GlobalThis</span></code> such as</p>
<div class="highlight-js notranslate"><div class="highlight"><pre><span></span><span class="k">return</span><span class="w"> </span><span class="nb">document</span>
</pre></div>
</div>
<p>see <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target.execute_raw_script" title="selenium_driverless.types.target.Target.execute_raw_script"><code class="xref py py-func docutils literal notranslate"><span class="pre">Target.execute_raw_script</span></code></a> for argument descriptions</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.execute_async_script">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">execute_async_script</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">script</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_depth</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">serialization</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">execution_context_id</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">unique_context</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.execute_async_script"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.execute_async_script" title="Permalink to this definition"></a></dt>
<dd><p>executes JavaScript asynchronously on <code class="docutils literal notranslate"><span class="pre">GlobalThis</span></code> such as</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>using execute_async_script is not recommended as it doesn’t handle exceptions correctly.
Use <a class="reference internal" href="#selenium_driverless.webdriver.Chrome.eval_async" title="selenium_driverless.webdriver.Chrome.eval_async"><code class="xref py py-func docutils literal notranslate"><span class="pre">Chrome.eval_async</span></code></a></p>
</div>
<div class="highlight-js notranslate"><div class="highlight"><pre><span></span><span class="nx">resolve</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">arguments</span><span class="p">[</span><span class="nx">arguments</span><span class="p">.</span><span class="nx">length</span><span class="o">-</span><span class="mf">1</span><span class="p">]</span>
</pre></div>
</div>
<p>see <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target.execute_raw_script" title="selenium_driverless.types.target.Target.execute_raw_script"><code class="xref py py-func docutils literal notranslate"><span class="pre">Target.execute_raw_script</span></code></a> for argument descriptions</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.eval_async">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">eval_async</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">script</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_depth</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">serialization</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">execution_context_id</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">unique_context</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.eval_async"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.eval_async" title="Permalink to this definition"></a></dt>
<dd><p>executes JavaScript asynchronously on <code class="docutils literal notranslate"><span class="pre">GlobalThis</span></code> such as</p>
<div class="highlight-js notranslate"><div class="highlight"><pre><span></span><span class="nx">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">await</span><span class="w"> </span><span class="nx">fetch</span><span class="p">(</span><span class="s2">&quot;https://httpbin.org/get&quot;</span><span class="p">);</span>
<span class="c1">// mind CORS!</span>
<span class="nx">json</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">await</span><span class="w"> </span><span class="nx">res</span><span class="p">.</span><span class="nx">json</span><span class="p">()</span>
<span class="k">return</span><span class="w"> </span><span class="nx">json</span>
</pre></div>
</div>
<p>see <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target.execute_raw_script" title="selenium_driverless.types.target.Target.execute_raw_script"><code class="xref py py-func docutils literal notranslate"><span class="pre">Target.execute_raw_script</span></code></a> for argument descriptions</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.current_url">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">current_url</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.current_url" title="Permalink to this definition"></a></dt>
<dd><p><strong>async</strong> current URL of the current Target</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.page_source">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">page_source</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.page_source" title="Permalink to this definition"></a></dt>
<dd><p><strong>async</strong> html of the current page.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.close">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">close</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.close"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.close" title="Permalink to this definition"></a></dt>
<dd><p>Closes the current target (only works for tabs).
:type timeout: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code></span>
:param timeout: timeout in seconds for the tab to close</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.focus">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">focus</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.focus"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.focus" title="Permalink to this definition"></a></dt>
<dd><p>focuses the current target (only works for tabs)</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.quit">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">quit</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">30</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">clean_dirs</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.quit"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.quit" title="Permalink to this definition"></a></dt>
<dd><p>Closes Chrome
:type timeout: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code></span>
:param timeout: the maximum time waiting for chrome to quit correctly
:type clean_dirs: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>
:param clean_dirs: whether to clean out the user-data-dir directory</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.current_target_info">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">current_target_info</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="Target.html#selenium_driverless.types.target.TargetInfo" title="selenium_driverless.types.target.TargetInfo"><span class="pre">TargetInfo</span></a></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.current_target_info" title="Permalink to this definition"></a></dt>
<dd><p><strong>async</strong> TargetInfo of the current target</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.current_window_handle">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">current_window_handle</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.current_window_handle" title="Permalink to this definition"></a></dt>
<dd><p>current TargetId</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>this is deprecated and will be removed
use <code class="docutils literal notranslate"><span class="pre">webdriver.Chrome.current_target.id</span></code> instead</p>
</div>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.current_window_id">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">current_window_id</span></span><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.current_window_id" title="Permalink to this definition"></a></dt>
<dd><p><strong>async</strong> the <code class="docutils literal notranslate"><span class="pre">WindowId</span></code> of the window the current Target belongs to</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.window_handles">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">window_handles</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="Target.html#selenium_driverless.types.target.TargetInfo" title="selenium_driverless.types.target.TargetInfo"><span class="pre">TargetInfo</span></a><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.window_handles" title="Permalink to this definition"></a></dt>
<dd><p><strong>async</strong> TargetInfo on all tabs in the current context</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>the tabs aren’t ordered by position in the window. Do not rely on the index, but iterate and filter them.</p>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.new_window">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">new_window</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">type_hint</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'tab'</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">url</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">''</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">activate</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.new_window"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.new_window" title="Permalink to this definition"></a></dt>
<dd><p>Creates a new window or tab in the current context</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>type_hint</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Literal</span></code>[<code class="docutils literal notranslate"><span class="pre">'tab'</span></code>, <code class="docutils literal notranslate"><span class="pre">'window'</span></code>]</span>) – whether to create a tab or window</p></li>
<li><p><strong>url</strong> – the url which the new window should start on. Defaults to <a class="reference external" href="about:blank">about:blank</a></p></li>
<li><p><strong>activate</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to explicitly activate/focus the window</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><a class="reference internal" href="Target.html#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><code class="xref py py-class docutils literal notranslate"><span class="pre">Target</span></code></a></span></p>
</dd>
</dl>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">new_target</span> <span class="o">=</span> <span class="n">driver</span><span class="o">.</span><span class="n">new_window</span><span class="p">(</span><span class="s1">&#39;tab&#39;</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.set_window_state">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">set_window_state</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">state</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.set_window_state"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.set_window_state" title="Permalink to this definition"></a></dt>
<dd><p>sets the window state on the window the current Target belongs to
:type state: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Literal</span></code>[<code class="docutils literal notranslate"><span class="pre">'normal'</span></code>, <code class="docutils literal notranslate"><span class="pre">'minimized'</span></code>, <code class="docutils literal notranslate"><span class="pre">'maximized'</span></code>, <code class="docutils literal notranslate"><span class="pre">'fullscreen'</span></code>]</span>
:param state: the state to set</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.normalize_window">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">normalize_window</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.normalize_window"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.normalize_window" title="Permalink to this definition"></a></dt>
<dd><p>Normalizes the window position and size on the window the current Target belongs to</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.maximize_window">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">maximize_window</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.maximize_window"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.maximize_window" title="Permalink to this definition"></a></dt>
<dd><p>Maximizes the window the current Target belongs to</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.fullscreen_window">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">fullscreen_window</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.fullscreen_window"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.fullscreen_window" title="Permalink to this definition"></a></dt>
<dd><p>enters fullscreen on the window the current Target belongs to</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.minimize_window">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">minimize_window</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.minimize_window"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.minimize_window" title="Permalink to this definition"></a></dt>
<dd><p>minimizes the window the current Target belongs to.
:rtype: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>Minimizing isn’t recommended as it can throttle some functionalities in chrome.</p>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.print_page">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">print_page</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.print_page"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.print_page" title="Permalink to this definition"></a></dt>
<dd><p>Prints the page (current target =&gt; tab) to PDF</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.switch_to">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">switch_to</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#selenium_driverless.scripts.switch_to.SwitchTo" title="selenium_driverless.scripts.switch_to.SwitchTo"><span class="pre">SwitchTo</span></a></em><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.switch_to" title="Permalink to this definition"></a></dt>
<dd><p>SwitchTo handle</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.back">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">back</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.back"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.back" title="Permalink to this definition"></a></dt>
<dd><p>Goes one step backward in the browser history on the current target (has to be a tab).</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.forward">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">forward</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.forward"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.forward" title="Permalink to this definition"></a></dt>
<dd><p>Goes one step forward in the browser history on the current target (has to be a tab).</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.refresh">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">refresh</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.refresh"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.refresh" title="Permalink to this definition"></a></dt>
<dd><p>Refreshes the current tab (target).</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_cookies">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_cookies</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_cookies"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_cookies" title="Permalink to this definition"></a></dt>
<dd><p>list of cookies for the current tab</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code>]</span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_cookie">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_cookie</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_cookie"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_cookie" title="Permalink to this definition"></a></dt>
<dd><p>Get a single cookie by name. Returns the cookie if found, None if
not.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>name</strong> – name of the cookie</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">Dict</span></code>]</span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.delete_cookie">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">delete_cookie</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">url</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">domain</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">path</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.delete_cookie"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.delete_cookie" title="Permalink to this definition"></a></dt>
<dd><p>Deletes a single cookie with the given name in the current tab.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>name</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – name of the cookie to delete</p></li>
<li><p><strong>url</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – url of the cookie</p></li>
<li><p><strong>domain</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – domain of the cookie</p></li>
<li><p><strong>path</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – path of the cookie</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.delete_all_cookies">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">delete_all_cookies</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.delete_all_cookies"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.delete_all_cookies" title="Permalink to this definition"></a></dt>
<dd><p>Delete all cookies in the current (incognito-) context.</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.add_cookie">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">add_cookie</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cookie_dict</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.add_cookie"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.add_cookie" title="Permalink to this definition"></a></dt>
<dd><p>Adds a cookie in the current (incognito-) context</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>cookie_dict</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span>) – see <a class="reference external" href="https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CookieParam">Network.CookieParam</a></p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.sleep">
<em class="property"><span class="pre">async</span><span class="w"> </span><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">sleep</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">time_to_wait</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.sleep"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.sleep" title="Permalink to this definition"></a></dt>
<dd><div class="admonition note">
<p class="admonition-title">Note</p>
<p>use this one instead of time.sleep in the sync version.</p>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>time_to_wait</strong> – time in seconds to sleep</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.find_element">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">find_element</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">by</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">value</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.find_element"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.find_element" title="Permalink to this definition"></a></dt>
<dd><p>find an element in the current target</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>by</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – one of the locators at <a class="reference internal" href="By.html#selenium_driverless.types.by.By" title="selenium_driverless.types.by.By"><code class="xref py py-func docutils literal notranslate"><span class="pre">By</span></code></a></p></li>
<li><p><strong>value</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – the actual query to find the element by</p></li>
<li><p><strong>timeout</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code>]</span>) – how long to wait for the element to exist</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><a class="reference internal" href="WebELement.html#selenium_driverless.types.webelement.WebElement" title="selenium_driverless.types.webelement.WebElement"><code class="xref py py-class docutils literal notranslate"><span class="pre">WebElement</span></code></a></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.find_elements">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">find_elements</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">by</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">value</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">3</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.find_elements"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.find_elements" title="Permalink to this definition"></a></dt>
<dd><p>find multiple elements in the current target</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>by</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – one of the locators at <a class="reference internal" href="By.html#selenium_driverless.types.by.By" title="selenium_driverless.types.by.By"><code class="xref py py-func docutils literal notranslate"><span class="pre">By</span></code></a></p></li>
<li><p><strong>value</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – the actual query to find the elements by</p></li>
<li><p><strong>timeout</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code></span>) – how long to wait for not being in a page reload loop in seconds</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<a class="reference internal" href="WebELement.html#selenium_driverless.types.webelement.WebElement" title="selenium_driverless.types.webelement.WebElement"><code class="xref py py-class docutils literal notranslate"><span class="pre">WebElement</span></code></a>]</span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.search_elements">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">search_elements</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">query</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.search_elements"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.search_elements" title="Permalink to this definition"></a></dt>
<dd><p>find elements similarly to how “CTRL+F” in the DevTools Console works</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>query</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – Plain text to find elements with</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">List</span></code>[<a class="reference internal" href="WebELement.html#selenium_driverless.types.webelement.WebElement" title="selenium_driverless.types.webelement.WebElement"><code class="xref py py-class docutils literal notranslate"><span class="pre">WebElement</span></code></a>]</span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_screenshot_as_file">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_screenshot_as_file</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">filename</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_screenshot_as_file"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_screenshot_as_file" title="Permalink to this definition"></a></dt>
<dd><p>Saves a screenshot of the current tab to a PNG image file.
:type filename: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>
:param filename: The path you wish to save your screenshot to. should end with a <cite>.png</cite> extension.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">driver</span><span class="o">.</span><span class="n">get_screenshot_as_file</span><span class="p">(</span><span class="s1">&#39;screenshots/test.png&#39;</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.save_screenshot">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">save_screenshot</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">filename</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.save_screenshot"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.save_screenshot" title="Permalink to this definition"></a></dt>
<dd><p>alias to :func: <cite>driver.get_screenshot_as_file &lt;selenium_driverless.webdriver.Chrome.get_screenshot_as_file&gt;</cite></p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_screenshot_as_png">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_screenshot_as_png</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_screenshot_as_png"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_screenshot_as_png" title="Permalink to this definition"></a></dt>
<dd><p>Gets the screenshot of the current tab as a binary data.</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bytes</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.snapshot">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">snapshot</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.snapshot"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.snapshot" title="Permalink to this definition"></a></dt>
<dd><p>gets the current snapshot as mhtml</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.save_snapshot">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">save_snapshot</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">filename</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.save_snapshot"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.save_snapshot" title="Permalink to this definition"></a></dt>
<dd><p>Saves a snapshot of the current window to a MHTML file.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>filename</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – The full path you wish to save your snapshot to. This
should end with a <code class="docutils literal notranslate"><span class="pre">.mhtml</span></code> extension.</p>
</dd>
</dl>
<div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="k">await</span> <span class="n">driver</span><span class="o">.</span><span class="n">get_snapshot</span><span class="p">(</span><span class="s1">&#39;snapshot.mhtml&#39;</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.set_window_size">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">set_window_size</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">width</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">height</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.set_window_size"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.set_window_size" title="Permalink to this definition"></a></dt>
<dd><p>Sets the width and height of the window, the current tab is within (unless <code class="docutils literal notranslate"><span class="pre">windowHandle</span></code> specified)</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>width</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></span>) – the width in pixels to set the window to</p></li>
<li><p><strong>height</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></span>) – the height in pixels to set the window to</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_window_size">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_window_size</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_window_size"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_window_size" title="Permalink to this definition"></a></dt>
<dd><p>Gets the width and height of the current window.</p>
<p>returns something like:
.. code-block: json
:rtype: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
<blockquote>
<div><p>{“width”:1280, “height”:720}</p>
</div></blockquote>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.set_window_position">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">set_window_position</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">y</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.set_window_position"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.set_window_position" title="Permalink to this definition"></a></dt>
<dd><p>Sets the x,y position of the window, the current tab is in.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>x</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></span>) – the x-coordinate in pixels to set the window position</p></li>
<li><p><strong>y</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></span>) – the y-coordinate in pixels to set the window position</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_window_position">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_window_position</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_window_position"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_window_position" title="Permalink to this definition"></a></dt>
<dd><p>Gets the x,y position of the window, the current tab is in.</p>
<p>returns something like:
.. code-block: json
:rtype: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
<blockquote>
<div><p>{“x”:0, “y”:0}</p>
</div></blockquote>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_window_rect">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_window_rect</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_window_rect"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_window_rect" title="Permalink to this definition"></a></dt>
<dd><p>Gets the x, y, with and height coordinates of the window, the current tab is in.</p>
<p>returns something like:
.. code-block: json
:rtype: <span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
<blockquote>
<div><p>{“x”:0, “y”:0,
“width”:1280, “height”:720,
“windowState”:”normal”
}</p>
</div></blockquote>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p><code class="docutils literal notranslate"><span class="pre">windowState</span></code> can be one of “normal”, “minimized”, “maximized”, “fullscreen”</p>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.set_window_rect">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">set_window_rect</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">y</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">height</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.set_window_rect"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.set_window_rect" title="Permalink to this definition"></a></dt>
<dd><p>Sets the x, y, width and height coordinates of the window the current target is in.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>x</strong> – the x-coordinate in pixels to set the window position</p></li>
<li><p><strong>y</strong> – the y-coordinate in pixels to set the window position</p></li>
<li><p><strong>width</strong> – the width in pixels to set the window to</p></li>
<li><p><strong>height</strong> – the height in pixels to set the window to</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
</dd>
</dl>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>either x and y or with and height have to be specified</p>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_network_conditions">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_network_conditions</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_network_conditions"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_network_conditions" title="Permalink to this definition"></a></dt>
<dd><p>Gets Chromium network emulation settings.</p>
<p>returns a dict like:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span><span class="s2">&quot;latency&quot;</span><span class="p">:</span> <span class="mi">4</span><span class="p">,</span> <span class="s2">&quot;download_throughput&quot;</span><span class="p">:</span> <span class="mi">2</span><span class="p">,</span> <span class="s2">&quot;upload_throughput&quot;</span><span class="p">:</span> <span class="mi">2</span><span class="p">,</span>
<span class="s2">&quot;offline&quot;</span><span class="p">:</span> <span class="kc">False</span><span class="p">}</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.set_network_conditions">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">set_network_conditions</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">offline</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">latency</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">download_throughput</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">upload_throughput</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">connection_type</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.set_network_conditions"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.set_network_conditions" title="Permalink to this definition"></a></dt>
<dd><p>Sets Chromium network emulation settings.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>offline</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – </p></li>
<li><p><strong>latency</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></span>) – additional latency in ms</p></li>
<li><p><strong>download_throughput</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></span>) – maximum throughput, 500 * 1024 for example</p></li>
<li><p><strong>upload_throughput</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></span>) – maximum throughput, 500 * 1024 for example</p></li>
<li><p><strong>connection_type</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Literal</span></code>[<code class="docutils literal notranslate"><span class="pre">'none'</span></code>, <code class="docutils literal notranslate"><span class="pre">'cellular2g'</span></code>, <code class="docutils literal notranslate"><span class="pre">'cellular3g'</span></code>, <code class="docutils literal notranslate"><span class="pre">'cellular4g'</span></code>, <code class="docutils literal notranslate"><span class="pre">'bluetooth'</span></code>, <code class="docutils literal notranslate"><span class="pre">'ethernet'</span></code>, <code class="docutils literal notranslate"><span class="pre">'wifi'</span></code>, <code class="docutils literal notranslate"><span class="pre">'wimax'</span></code>, <code class="docutils literal notranslate"><span class="pre">'other'</span></code>]</span>) – the connection type</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>‘throughput’ can be used to set both (for download and upload).</p>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.delete_network_conditions">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">delete_network_conditions</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.delete_network_conditions"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.delete_network_conditions" title="Permalink to this definition"></a></dt>
<dd><p>Resets Chromium network emulation settings.</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.set_permissions">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">set_permissions</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">value</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">origin</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.set_permissions"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.set_permissions" title="Permalink to this definition"></a></dt>
<dd><p>Sets Applicable Permission</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>name</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – The item to set the permission on.</p></li>
<li><p><strong>value</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Literal</span></code>[<code class="docutils literal notranslate"><span class="pre">'granted'</span></code>, <code class="docutils literal notranslate"><span class="pre">'denied'</span></code>, <code class="docutils literal notranslate"><span class="pre">'prompt'</span></code>]</span>) – The value to set on the item</p></li>
<li><p><strong>origin</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]</span>) – the origin the permission for. Applies to any origin if not set</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">target</span><span class="o">.</span><span class="n">set_permissions</span><span class="p">(</span><span class="s1">&#39;clipboard-read&#39;</span><span class="p">,</span> <span class="s1">&#39;denied&#39;</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.set_proxy">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">set_proxy</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">proxy_config</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.set_proxy"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.set_proxy" title="Permalink to this definition"></a></dt>
<dd><p>set a proxy dynamically</p>
<p>Example parameters:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">proxy_config</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s2">&quot;mode&quot;</span><span class="p">:</span> <span class="s2">&quot;fixed_servers&quot;</span><span class="p">,</span>
    <span class="s2">&quot;rules&quot;</span><span class="p">:</span> <span class="p">{</span>
        <span class="s2">&quot;proxyForHttp&quot;</span><span class="p">:</span> <span class="p">{</span>
            <span class="s2">&quot;scheme&quot;</span><span class="p">:</span> <span class="n">scheme</span><span class="p">,</span>
            <span class="s2">&quot;host&quot;</span><span class="p">:</span> <span class="n">host</span><span class="p">,</span>
            <span class="s2">&quot;port&quot;</span><span class="p">:</span> <span class="n">port</span>
        <span class="p">},</span>
        <span class="s2">&quot;proxyForHttps&quot;</span><span class="p">:</span> <span class="p">{</span>
            <span class="s2">&quot;scheme&quot;</span><span class="p">:</span> <span class="n">scheme</span><span class="p">,</span>
            <span class="s2">&quot;host&quot;</span><span class="p">:</span> <span class="n">host</span><span class="p">,</span>
            <span class="s2">&quot;port&quot;</span><span class="p">:</span> <span class="n">port</span>
        <span class="p">},</span>
        <span class="s2">&quot;proxyForFtp&quot;</span><span class="p">:</span> <span class="p">{</span>
            <span class="s2">&quot;scheme&quot;</span><span class="p">:</span> <span class="n">scheme</span><span class="p">,</span>
            <span class="s2">&quot;host&quot;</span><span class="p">:</span> <span class="n">host</span><span class="p">,</span>
            <span class="s2">&quot;port&quot;</span><span class="p">:</span> <span class="n">port</span>
        <span class="p">},</span>
        <span class="s2">&quot;fallbackProxy&quot;</span><span class="p">:</span> <span class="p">{</span>
            <span class="s2">&quot;scheme&quot;</span><span class="p">:</span> <span class="n">scheme</span><span class="p">,</span>
            <span class="s2">&quot;host&quot;</span><span class="p">:</span> <span class="n">host</span><span class="p">,</span>
            <span class="s2">&quot;port&quot;</span><span class="p">:</span> <span class="n">port</span>
        <span class="p">},</span>
        <span class="s2">&quot;bypassList&quot;</span><span class="p">:</span> <span class="p">[</span><span class="s2">&quot;&lt;local&gt;&quot;</span><span class="p">]</span>
    <span class="p">}</span>
<span class="p">}</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>proxy_config</strong> – see <a class="reference external" href="https://developer.chrome.com/docs/extensions/reference/proxy/">developer.chrome.com/docs/extensions/reference/proxy</a> for reference</p>
</dd>
</dl>
<p>for authentification, see <a class="reference internal" href="#selenium_driverless.webdriver.Chrome.set_auth" title="selenium_driverless.webdriver.Chrome.set_auth"><code class="xref py py-func docutils literal notranslate"><span class="pre">webdriver.Chrome.set_auth</span></code></a></p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.set_single_proxy">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">set_single_proxy</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">proxy</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">bypass_list</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.set_single_proxy"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.set_single_proxy" title="Permalink to this definition"></a></dt>
<dd><p>Set a single proxy dynamically to be applied in all contexts.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="s2">&quot;http://user1:passwrd1@example.proxy.com:5001/&quot;</span>
</pre></div>
</div>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<ul class="simple">
<li><p>Only supported when Chrome has been started with driverless or the extension at <code class="docutils literal notranslate"><span class="pre">selenium_driverless/files/mv3_extension</span></code> has been loaded into the browser.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">Socks5</span></code> doesn’t support authentication due to <a class="reference external" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1309413">crbug#1309413</a>.</p></li>
</ul>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.clear_proxy">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">clear_proxy</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.clear_proxy"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.clear_proxy" title="Permalink to this definition"></a></dt>
<dd><p>Clear the applied proxy (=&gt; use no proxy at all) in all contexts.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.set_auth">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">set_auth</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">username</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">password</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">host_with_port</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.set_auth"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.set_auth" title="Permalink to this definition"></a></dt>
<dd><p>Set authentication dynamically to be applied in all contexts.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">driver</span><span class="o">.</span><span class="n">set_auth</span><span class="p">(</span><span class="s2">&quot;user1&quot;</span><span class="p">,</span><span class="s2">&quot;passwrd1&quot;</span><span class="p">,</span> <span class="s2">&quot;example.com:5001&quot;</span><span class="p">)</span>
</pre></div>
</div>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<ul class="simple">
<li><p>Only supported when Chrome has been started with driverless or the extension at <code class="docutils literal notranslate"><span class="pre">selenium_driverless/files/mv3_extension</span></code> has been loaded into the browser.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">Socks5</span></code> doesn’t support authentication due to <a class="reference external" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1309413">crbug#1309413</a>.</p></li>
</ul>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>username</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – </p></li>
<li><p><strong>password</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – </p></li>
<li><p><strong>host_with_port</strong> – in format “example.com:5001”</p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.wait_for_cdp">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">wait_for_cdp</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">event</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.wait_for_cdp"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.wait_for_cdp" title="Permalink to this definition"></a></dt>
<dd><p>wait for an event on the current target
see <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target.wait_for_cdp" title="selenium_driverless.types.target.Target.wait_for_cdp"><code class="xref py py-func docutils literal notranslate"><span class="pre">Target.wait_for_cdp</span></code></a> for reference</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.add_cdp_listener">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">add_cdp_listener</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">event</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">callback</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.add_cdp_listener"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.add_cdp_listener" title="Permalink to this definition"></a></dt>
<dd><p>add a listener for a CDP event on the current target
see <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target.add_cdp_listener" title="selenium_driverless.types.target.Target.add_cdp_listener"><code class="xref py py-func docutils literal notranslate"><span class="pre">Target.add_cdp_listener</span></code></a> for reference</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.remove_cdp_listener">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">remove_cdp_listener</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">event</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">callback</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.remove_cdp_listener"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.remove_cdp_listener" title="Permalink to this definition"></a></dt>
<dd><p>remove a listener for a CDP event on the current target
see <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target.remove_cdp_listener" title="selenium_driverless.types.target.Target.remove_cdp_listener"><code class="xref py py-func docutils literal notranslate"><span class="pre">Target.remove_cdp_listener</span></code></a> for reference</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_cdp_event_iter">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_cdp_event_iter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">event</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_cdp_event_iter"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_cdp_event_iter" title="Permalink to this definition"></a></dt>
<dd><p>iterate over CDP events on the current target
see <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target.get_cdp_event_iter" title="selenium_driverless.types.target.Target.get_cdp_event_iter"><code class="xref py py-func docutils literal notranslate"><span class="pre">Target.get_cdp_event_iter</span></code></a> for reference</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">AsyncIterable</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code>]</span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.execute_cdp_cmd">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">execute_cdp_cmd</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cmd</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cmd_args</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">10</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.execute_cdp_cmd"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.execute_cdp_cmd" title="Permalink to this definition"></a></dt>
<dd><p>Execute Chrome Devtools Protocol command on the current target
executes it on <a class="reference internal" href="Target.html#selenium_driverless.types.base_target.BaseTarget" title="selenium_driverless.types.base_target.BaseTarget"><code class="xref py py-class docutils literal notranslate"><span class="pre">Target.execute_cdp_cmd</span></code></a>
if <code class="docutils literal notranslate"><span class="pre">message:'Not</span> <span class="pre">allowed'</span></code> received
see <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target.execute_cdp_cmd" title="selenium_driverless.types.target.Target.execute_cdp_cmd"><code class="xref py py-func docutils literal notranslate"><span class="pre">Target.execute_cdp_cmd</span></code></a> for reference</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.fetch">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">fetch</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.fetch"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.fetch" title="Permalink to this definition"></a></dt>
<dd><p>executes a JS <code class="docutils literal notranslate"><span class="pre">fetch</span></code> request within the current target
see <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target.fetch" title="selenium_driverless.types.target.Target.fetch"><code class="xref py py-func docutils literal notranslate"><span class="pre">Target.fetch</span></code></a> for reference</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.xhr">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">xhr</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.xhr"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.xhr" title="Permalink to this definition"></a></dt>
<dd><p>executes a JS <code class="docutils literal notranslate"><span class="pre">XMLHttpRequest</span></code> request within the current target
see <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target.fetch" title="selenium_driverless.types.target.Target.fetch"><code class="xref py py-func docutils literal notranslate"><span class="pre">Target.fetch</span></code></a> for reference</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_sinks">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_sinks</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_sinks"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_sinks" title="Permalink to this definition"></a></dt>
<dd><dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>A list of sinks available for Cast.</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.get_issue_message">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_issue_message</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.get_issue_message"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.get_issue_message" title="Permalink to this definition"></a></dt>
<dd><dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>An error message when there is any issue in a Cast session.</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.set_sink_to_use">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">set_sink_to_use</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sink_name</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.set_sink_to_use"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.set_sink_to_use" title="Permalink to this definition"></a></dt>
<dd><p>Sets a specific sink, using its name, as a Cast session receiver
target.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>sink_name</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – Name of the sink to use as the target.</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.start_desktop_mirroring">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">start_desktop_mirroring</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sink_name</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.start_desktop_mirroring"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.start_desktop_mirroring" title="Permalink to this definition"></a></dt>
<dd><p>Starts a desktop mirroring session on a specific receiver target.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>sink_name</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – Name of the sink to use as the target.</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.start_tab_mirroring">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">start_tab_mirroring</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sink_name</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.start_tab_mirroring"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.start_tab_mirroring" title="Permalink to this definition"></a></dt>
<dd><p>Starts a tab mirroring session on a specific receiver target.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>sink_name</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></span>) – Name of the sink to use as the target.</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.webdriver.Chrome.stop_casting">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">stop_casting</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sink_name</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/webdriver.html#Chrome.stop_casting"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.webdriver.Chrome.stop_casting" title="Permalink to this definition"></a></dt>
<dd><p>Stops the existing Cast session on a specific receiver target.</p>
<dl class="field-list simple">
<dt class="field-odd">Args<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p>sink_name: Name of the sink to stop the Cast session.</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></span></p>
</dd>
</dl>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.scripts.switch_to.SwitchTo">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.scripts.switch_to.</span></span><span class="sig-name descname"><span class="pre">SwitchTo</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">context</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">context_id</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">loop</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/scripts/switch_to.html#SwitchTo"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.switch_to.SwitchTo" title="Permalink to this definition"></a></dt>
<dd><p>the SwitchTo class</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>except for switching to targets, do not use this class</p>
</div>
<dl class="py property">
<dt class="sig sig-object py" id="selenium_driverless.scripts.switch_to.SwitchTo.alert">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">alert</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Alert</span></em><a class="headerlink" href="#selenium_driverless.scripts.switch_to.SwitchTo.alert" title="Permalink to this definition"></a></dt>
<dd><p>Switches focus to an alert on the page.</p>
<dl class="field-list">
<dt class="field-odd">Usage<span class="colon">:</span></dt>
<dd class="field-odd"><div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">alert</span> <span class="o">=</span> <span class="n">target</span><span class="o">.</span><span class="n">switch_to</span><span class="o">.</span><span class="n">alert</span>
</pre></div>
</div>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.switch_to.SwitchTo.get_alert">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_alert</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">5</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/scripts/switch_to.html#SwitchTo.get_alert"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.switch_to.SwitchTo.get_alert" title="Permalink to this definition"></a></dt>
<dd><p>Switches focus to an alert on the page.</p>
<dl class="field-list">
<dt class="field-odd">Usage<span class="colon">:</span></dt>
<dd class="field-odd"><div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">alert</span> <span class="o">=</span> <span class="n">target</span><span class="o">.</span><span class="n">switch_to</span><span class="o">.</span><span class="n">alert</span>
</pre></div>
</div>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">Alert</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.switch_to.SwitchTo.default_content">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">default_content</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">activate</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/scripts/switch_to.html#SwitchTo.default_content"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.switch_to.SwitchTo.default_content" title="Permalink to this definition"></a></dt>
<dd><p>Switch focus to the default frame.</p>
<dl class="field-list">
<dt class="field-odd">Usage<span class="colon">:</span></dt>
<dd class="field-odd"><div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">target</span><span class="o">.</span><span class="n">switch_to</span><span class="o">.</span><span class="n">default_content</span><span class="p">()</span>
</pre></div>
</div>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><a class="reference internal" href="Target.html#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><code class="xref py py-class docutils literal notranslate"><span class="pre">Target</span></code></a></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.switch_to.SwitchTo.frame">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">frame</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">frame_reference</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">focus</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/scripts/switch_to.html#SwitchTo.frame"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.switch_to.SwitchTo.frame" title="Permalink to this definition"></a></dt>
<dd><p>Switches to the specified frame</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>frame_reference</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Union</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>, <code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code>, <a class="reference internal" href="WebELement.html#selenium_driverless.types.webelement.WebElement" title="selenium_driverless.types.webelement.WebElement"><code class="xref py py-class docutils literal notranslate"><span class="pre">WebElement</span></code></a>]</span>) – the reference by ID, name, index, or WebElement</p></li>
<li><p><strong>focus</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to emulate focus on the frame</p></li>
<li><p><strong>focus</strong> – whether to emulate focus on the iframe</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.switch_to.SwitchTo.target">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">target</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">target_id</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">activate</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">focus</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/scripts/switch_to.html#SwitchTo.target"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.switch_to.SwitchTo.target" title="Permalink to this definition"></a></dt>
<dd><p>switches to a target</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>target_id</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Union</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>, <a class="reference internal" href="Target.html#selenium_driverless.types.target.TargetInfo" title="selenium_driverless.types.target.TargetInfo"><code class="xref py py-class docutils literal notranslate"><span class="pre">TargetInfo</span></code></a>, <a class="reference internal" href="Target.html#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><code class="xref py py-class docutils literal notranslate"><span class="pre">Target</span></code></a>]</span>) – the target to switch to</p></li>
<li><p><strong>activate</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to bring the target to the front</p></li>
<li><p><strong>focus</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to emulate focus on the target</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><a class="reference internal" href="Target.html#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><code class="xref py py-class docutils literal notranslate"><span class="pre">Target</span></code></a></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.switch_to.SwitchTo.window">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">window</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">window_id</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">activate</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">focus</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/scripts/switch_to.html#SwitchTo.window"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.switch_to.SwitchTo.window" title="Permalink to this definition"></a></dt>
<dd><p>switches to a window</p>
<p>alias to <code class="xref py py-func docutils literal notranslate"><span class="pre">SwitchTo.target</span> <span class="pre">&lt;selenium_driverless.scripts.switch_to.SwitchTo.target()</span></code></p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><a class="reference internal" href="Target.html#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><code class="xref py py-class docutils literal notranslate"><span class="pre">Target</span></code></a></span></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="selenium_driverless.scripts.switch_to.SwitchTo.new_window">
<em class="property"><span class="pre">async</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">new_window</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">type_hint</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'tab'</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">url</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">''</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">activate</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">focus</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">background</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/selenium_driverless/scripts/switch_to.html#SwitchTo.new_window"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.scripts.switch_to.SwitchTo.new_window" title="Permalink to this definition"></a></dt>
<dd><p>creates a new tab or window</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>type_hint</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-data docutils literal notranslate"><span class="pre">Literal</span></code>[<code class="docutils literal notranslate"><span class="pre">'tab'</span></code>, <code class="docutils literal notranslate"><span class="pre">'window'</span></code>]</span>) – what kind of target to create</p></li>
<li><p><strong>url</strong> – url to start the target at</p></li>
<li><p><strong>activate</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to bring the target to the front</p></li>
<li><p><strong>focus</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to emulate focus on the target</p></li>
<li><p><strong>background</strong> (<span class="sphinx_autodoc_typehints-type"><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></span>) – whether to start the target in the background</p></li>
</ul>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p><span class="sphinx_autodoc_typehints-type"><a class="reference internal" href="Target.html#selenium_driverless.types.target.Target" title="selenium_driverless.types.target.Target"><code class="xref py py-class docutils literal notranslate"><span class="pre">Target</span></code></a></span></p>
</dd>
</dl>
</dd></dl>

</dd></dl>

</section>


           </div>
          </div>
          <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
        <a href="By.html" class="btn btn-neutral float-left" title="By Element Locator" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
        <a href="ChromeOptions.html" class="btn btn-neutral float-right" title="ChromeOptions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>&#169; Copyright 2024, Aurin Aegerter (aka Steve, kaliiiiiiiiii).</p>
  </div>

  Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
    <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
    provided by <a href="https://readthedocs.org">Read the Docs</a>.
   

</footer>
        </div>
      </div>
    </section>
  </div>
  <script>
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>